function main() {
    // 组件的唯一标识
    debugger
    let self = this
    const dom1 = self.$$("com_board_table_671zqq");
    let stallIdValue = self.$$("number_input_gwgapp").cValue;
    // 将组件设置为加载中
    dom1.data.props.loadingConfig.loading = true;
    // 调用ddcat接口，如果是api接口 “ddcat”改为“api”,同时返回不同，需要console.log查看具体的返回值
    let params = [{
        name: "stallId",
        valueContent: stallIdValue
    }];

    api.DATA_SOURCE_EXECUTE("ds_mod:0f221447-00ad-4dd0-875c-881af08ba574", "ddcat", params, [], "").then(res => {
        if (res && !res.hasError) {
            if (res.result) {
                const datas = res.result;
                const newList = datas.map(e => {
                    return {
                        appointment_date: e.appointment_date,
                        stall_use_period_type_name: e.stall_use_period_type_name,
                        create_appointment_time: e.create_appointment_time,
                        checked: false
                    }
                }).filter(g => g.value);
                // 给组件赋值，按照组件的示例数据封装返回dom1.data.props.dataSource.customOptions 为标准格式，如果组件包含多个参数列如options,checks参数值为dom1.data.props.dataSource.customOptions.options,dom1.data.props.dataSource.customOptions.options.checks
                dom1.data.props.dataSource.customOptions = newList;

                dom1.data.props.dataSource.options = newList;

                // 将加载中去除
                dom1.data.props.loadingConfig.loading = false;
            } else {
                dom1.data.props.dataSource.customOptions = [];
                dom1.data.props.loadingConfig.loading = false;
            }
        } else {
            dom1.data.props.dataSource.customOptions = [];
            dom1.data.props.loadingConfig.loading = false;
        }
    }).catch(err => {
        console.log("err", err)
        dom1.data.props.dataSource.customOptions = [];
        dom1.data.props.loadingConfig.loading = false;
    });
}
